home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / ici / ici.cpi / set.h < prev    next >
C/C++ Source or Header  |  1994-10-27  |  327b  |  18 lines

  1. #ifndef    ICI_SETS_H
  2. #define    ICI_SETS_H
  3.  
  4. #ifndef    ICI_OBJECT_H
  5. #include "object.h"
  6. #endif
  7.  
  8. struct sets
  9. {
  10.     object_t    o_head;
  11.     int        s_nels;        /* How many slots used. */
  12.     int        s_nslots;    /* How many slots allocated. */
  13.     object_t    **s_slots;
  14. };
  15. #define setof(o)    ((set_t *)(o))
  16. #define    isset(o)    ((o)->o_tcode == TC_SET)
  17. #endif
  18.